package com.ghy.dto;

import com.ghy.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author GaoHeYang
 */
@Schema(name="购物车添加DTO")
@Data
public class CartInsertDTO implements Serializable, RE {


    @NotNull(message = "用户主键不能为空")
    @Schema(description = "用户主键")
    private Long fkUserId;

    @NotNull(message = "课程主键不能为空")
    @Schema(description = "课程主键")
    private Long fkCourseId;



}
